package cn.wolfcode.repsitory;

import cn.wolfcode.domain.Travel;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @Description: 旅游持久层接口
 * @Author: 伍家钰
 * @Date: 2020/8/14 12:50
 * @Version: 1.0
 */
public interface TravelRepsitory extends MongoRepository<Travel, String> {
    /**
     * 查询点击量前三的用户
     *
     * @param destId
     * @param pageable
     * @return
     */
    List<Travel> findByDestId(String destId, Pageable pageable);
}
